<?php
namespace app\api\controller;
class Device extends Common{
	/**
	 * 通知该设备为空闲状态
	 * @return [type] [description]
	 */
	function online(){
		$uid=$this->user['id'];
		$dev_id=$this->user['device_id'];
		model($this->table)->edit(['id'=>$dev_id,'is_busy'=>0]);
		// 通知后台设备忙碌状态更改
		model($this->table)->isBusyNotice($uid,$dev_id,0);
		return json('');
	}
}